package com.yoga.manager.admin;

import com.yoga.common.appexception.AppException;
import com.yoga.common.bo.YogaAdminBO;

/**
 * Created by hdx on 2020/9/28.
 */
public interface AdminYogaAdminManager {
    /**
     * admin注册
     * @param yogaAdminBO
     * @return
     * @throws AppException
     */
    YogaAdminBO adminRegister(YogaAdminBO yogaAdminBO) throws AppException;

    /**
     * 登录
     * @param yogaAdminBO
     * @return
     * @throws AppException
     */
    YogaAdminBO login(YogaAdminBO yogaAdminBO) throws AppException;

    /**
     * 查询
     * @param yogaAdminId
     * @return
     * @throws AppException
     */
    YogaAdminBO getById(Long yogaAdminId) throws AppException;

    /**
     * 修改
     * @param yogaAdminBO
     * @return
     * @throws AppException
     */
    Boolean updateById(YogaAdminBO yogaAdminBO) throws AppException;

}
